﻿@using CodeCamp.Models.Schedule
@using CodeCamp.Models.Shared
@using CodeCamp.Infrastructure.Extensions
@model ScheduleTimeslotEditViewModel
@{
    ViewBag.Title = "";
    string headline;
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = @Html.Encode(@Model.EventDisplayName + " | Add Timeslot");
        headline = @Model.EventDisplayName + " Add Timeslot";
    }
    else
    {
        ViewBag.Title = "Code Camp | Add Timeslot";
        headline = "Code Camp Add Timeslot";
    }
}

<h2>@headline</h2>

@Html.Partial("Partial/EditTimeslotPartial", Model.Timeslot)

@Html.ActionLink("Back to List", "Timeslots")

@section sidebar {
    @Html.Partial("SidebarCommonPartial")
}
